﻿@model MiddleMVCTask.BL.ViewModels.RegisterViewModel
@{
    ViewBag.Title = "Sign Up";
}

<div id="wrapper">
    <h1>@ViewBag.Title</h1>
    <div id="form-athentication">
        @using (Html.BeginForm("Register", "Account", FormMethod.Post, new { id = "login-form", role = "form" }))
        {
            @Html.AntiForgeryToken();
            <fieldset>
                <legend class="form-legend">Please enter your username and password</legend>
                <div class="form-group">
                    @Html.LabelFor(m => m.Username, new { @class = "form-label" })
                    @Html.TextBoxFor(m => m.Username, new { id = "username" })

                </div>
                <div class="form-group">
                    @Html.LabelFor(m => m.Password, new { @class = "form-label" })
                    @Html.TextBoxFor(m => m.Password, new { id = "password", type = "password" })

                </div>
                <button>@ViewBag.Title</button>
            </fieldset>

            @Html.ValidationSummary();
            <div class="link">
                @Html.ActionLink("Login", "Login") if you  have an account.
            </div>
        }
    </div>
</div>
